package com.kingboy.kbg.auth.service;

import com.kingboy.kbg.auth.common.jwt.TokenVo;
import com.kingboy.kbg.auth.dto.TokenDTO;
import com.kingboy.kbg.core.common.exception.BizException;

/**
 * Create By 郭金宝 on 2018/6/15.<br>
 */
public interface AuthService {
    TokenVo login(String userName, String passWord) ;

    TokenDTO login(String userName) throws BizException;

    TokenDTO loginTokenDto(String userName, String passWord) throws BizException;

    TokenVo refresh(String userName, String passWord) ;

    void validate(String token);

    void invalid(String token) ;
}
